import { configureStore } from "@reduxjs/toolkit";
import postReducer from "./postSlice";
import paymentReducer from './paymentSlice';
import user from './userSlice'
import userTranslation from './userTranslation'
import giftRewardSlice from './giftRewardSlice'
import userTranslationReducer from './userTranslationSlice';
import InfoSlice from './modules/InfoSlice'
import MySettingSlice from './modules/MySettingSlice'
const store = configureStore({
  reducer: {
    post: postReducer,
    payment: paymentReducer,
    user: user,
    userTranslation: userTranslation,
    giftReward: giftRewardSlice,
    userTranslationstatus: userTranslationReducer,
    InfoSlice: InfoSlice.reducer,
    MySettingSlice: MySettingSlice.reducer,
  },
});

export type RootState = ReturnType<typeof store.getState>;

export default store;
